package cn.hznc.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;

//用户表
@Table(name = "t_user")
@Data
public class UserEntity {

    @Column(name = "id",type = MySqlTypeConstant.INT,length = 11,isKey = true,isAutoIncrement = true)
    private Integer id;

    @Column(name = "username", type = MySqlTypeConstant.VARCHAR, length = 200)
    private String username;

    @Column(name = "password",type = MySqlTypeConstant.VARCHAR, length = 200)
    private String password;

    @TableField(exist = false)
    private String token;

    @TableField(exist = false)
    private String employeeName;

    @TableField(exist = false)
    private String company;

}
